<template>
  <div class="navigation-page">
    <div v-for="(item,index) in navigationList" @click="toUrl(item.url,index!==navigationList.length-1)" :key="item.id" class="navigation-item">{{item.value}}&nbsp;&nbsp;{{index===navigationList.length-1?'':'>>'}}&nbsp;&nbsp;</div>
  </div>
</template>

<script>
export default {
  name: "Navigation",
  props:{
    navigationList:Array,
  },
  methods:{
    toUrl(url,jump){
      if(jump){
        this.$router.replace({path:url});
      }
    }
  }
}
</script>

<style lang="scss" scoped>
  .navigation-page{
    width:100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    height: 40px;
    .navigation-item{
      font-size: 14px;
      cursor: pointer;
    }
  }
</style>
